import request from '@/utils/request'

// 查询所有工厂列表
export function getAllFactoryList() {
  return request({
    url: '/factory/getAll',
    method: 'get'
  })
}
// 查询工厂列表
export function getFactoryList(query) {
  return request({
    url: '/factory/list',
    method: 'post',
    params: query
  })
}



//删除商品
export function goodsRemove(ids) {
  return request({
    url: '/goods/remove',
    method: 'post',
    data: ids
  })
}

//商品保存
export function goodsSave(data) {
  return request({
    url: '/goods/save',
    method: 'post',
    data: data
  })
}

// 查询商品详细
export function getGoods(id) {
  return request({
    url: '/goods/' + id,
    method: 'get'
  })
}

